package me.principality.webapp.domain.repository

import me.principality.webapp.domain.dto.Coffee
import org.springframework.data.repository.CrudRepository

interface CoffeeRepository : CrudRepository<Coffee, Long> {
    fun findByProductName(productName: String): Coffee?
    fun findAllByOrderByOriginCountryDesc(): Iterable<Coffee>
}